#include<iostream>
#include<string>
using namespace std;

class Solution {
public:
    bool isPalindrome(int x)
    {
        string s = to_string(x);
        string ss;
        for (int i = s.size() - 1; i >= 0; i--)
            ss.push_back(s[i]);
        return ss == s;
    }
};